/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    hansen
 * 创建时间:    2023-10-31
 */
package org.jeecg.modules.dock.entity.mes.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.utils.DockContentUtil;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * MES-WMS 任务更新入参
 *
 * @author hansen
 * @version 1.0.0
 * @date 2023-10-31 14:12:32
 */
@Data
@ApiModel(value = "MES-WMS 任务更新入参", description = "MES-WMS 任务更新入参")
public class UpdateGrossWeightOfFinishedProductsRequestVO {

    @NotBlank
    @NotNull
    @ApiModelProperty("批次号")
    private String batchId;

    @NotBlank
    @NotNull
    @ApiModelProperty("物料编码")
    private String materialCode;

    @NotNull
    @ApiModelProperty("毛重")
    private Integer grossWeight;

    public void setMaterialCode(String materialCode) {
        this.materialCode = DockContentUtil.addZero(materialCode);
    }

}
